import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'getinto',
    component: () => import('@/views/getinto')
  },
  {
    path: '/recharge',
    name: 'recharge',
    component: () => import('@/views/recharge')
  },
  {
    path: '/acbe',
    name: 'acbe',
    component: () => import('@/views/acbe')
  },
  {
    path: '/article',
    name: 'article',
    component: () => import('@/views/article')
  },
  {
    path: '/setup',
    name: 'setup',
    component: () => import('@/views/setup')
  },
  {
    path: '/author',
    name: 'author',
    component: () => import('@/views/author')
  },
  {
    path: '/cfn',
    name: 'cfn',
    component: () => import('@/views/cfn')
  },
  {
    path: '/classon',
    name: 'classon',
    component: () => import('@/views/classon')
  },
  {
    path: '/comment',
    name: 'comment',
    component: () => import('@/views/comment')
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('@/views/search')
  },
  {
    path: '/details',
    name: 'details',
    component: () => import('@/views/details')
  },
  {
    path: '/layout',
    name: 'layout',
    redirect:'/home',
    component: () => import('@/views/layout'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home')
      },
      {
        path: '/find',
        name: 'find',
        component: () => import('@/views/find'),
      },
      {
        path: '/bs',
        name: 'bs',
        component: () => import('@/views/bs')
      },
      {
        path: '/my',
        name: 'my',
        component: () => import('@/views/my')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
